package ac.neec.mio.ui.activity;

import ac.neec.mio.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;


public class TestActivity extends Activity {


    private TextView agetText;
    private TextView heightText;
    private TextView weightText;
    private TextView sexText;
    private TextView heartText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);

        initFindViews();
//
//        SharedPreferences sp = getSharedPreferences(
//        		getResources().getString(R.string.profile_preference_name), MODE_PRIVATE);
//
//        agetText.setText(""+sp.getInt("age", 500));
//        heightText.setText(""+sp.getInt("height",500));
//        weightText.setText(""+sp.getInt("weight",500));
//        sexText.setText(""+sp.getString("sex","null"));
//        heartText.setText(""+sp.getInt("restingHeart",500));
    }

    private void initFindViews(){
        agetText = (TextView)findViewById(R.id.ageText);
        heightText = (TextView)findViewById(R.id.heightText);
        weightText = (TextView)findViewById(R.id.weightText);
        sexText = (TextView) findViewById(R.id.text_sex);
        heartText = (TextView) findViewById(R.id.text_resting_heart);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {

        // Inflate the menu; this adds items to the action bar if it is present.
//        getMenuInflater().inflate(R.menu.test, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        switch (item.getItemId()) {
            case R.id.action_settings:
                return true;
        }
        return super.onOptionsItemSelected(item);
    }


}
